package com.thread1;

import org.junit.Test;

public class TestMyThread {


    @Test
    public void test1(){
//       创建自定义线程对象1
        MyThread mt1 = new MyThread("子线程1");

//       开启子线程1
        mt1.start();

//       创建自定义线程对象2
        MyThread mt2 = new MyThread("子线程2");
//        开启子线程2
        mt2.start();

        for (int i = 0; i < 3; i++) {
            System.out.println("main线程！"+i);

        }
    }
}
